<?php


use Biz\service\advertisement\spotlight\SpotlightActivityService;

class LikeFeaturesAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $p = $this->getQuery('p', 1);
        $features = $this->getPost('features', '');

        SpotlightActivityService::getInstance($p, $this->uid)->likeFeatures($features);

        $this->setSuccess();
    }
}